=== ACE WebP Optimizer ===
Contributors: ace
Tags: webp, image optimization, performance, images
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later

Automatically converts uploaded images to WebP format and serves them on the frontend for faster page loading.

== Description ==

ACE WebP Optimizer converts JPG and PNG images to WebP format, reducing file sizes by 25-35% with no visible quality loss. Conversion runs locally on your server using GD or Imagick — no external APIs, no subscriptions.

**Features**

* Auto-convert images on upload (all thumbnail sizes included)
* Bulk convert existing Media Library images with progress bar
* Quality slider (1–100, default 82)
* Original files kept as backup
* Frontend HTML rewriting serves WebP automatically
* Graceful fallback for browsers without WebP support
* Cleans up WebP files when attachments are deleted
* Works on shared hosting (no shell access required)

== Installation ==

1. Upload the `ace-webp-optimizer` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins menu.
3. Go to **Settings → WebP Optimizer** to configure quality and enable bulk conversion.

== Frequently Asked Questions ==

= What if my server doesn't support WebP? =

The plugin checks for GD (with WebP) or Imagick on activation and shows a notice if neither is available. Contact your hosting provider to enable GD WebP support.

= Are original images preserved? =

Yes. The original JPG/PNG is never modified. The WebP version is saved alongside it (e.g., `photo.jpg.webp`).

= Does it work with page caches? =

Yes. The plugin rewrites URLs in the HTML output before the page is cached, so cached pages will serve WebP images.

== Changelog ==

= 1.0.0 =
* Initial release.
